package com.control.qct.businesssteward.adapter;

import android.support.annotation.Nullable;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.model.AccountTotalModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/12/13 0013.
 */

public class AccountTotalAdapter extends BaseQuickAdapter<AccountTotalModel, BaseViewHolder> {
    public AccountTotalAdapter(@Nullable List<AccountTotalModel> data) {
        super(R.layout.rv_shop_account_item, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, AccountTotalModel item) {
        holder.setText(R.id.tv_account_title, item.getTitle()).setText(R.id.tv_account_num, item.getNum())
                .setText(R.id.tv_account_price, item.getPrice());
    }
}
